package com.dragon.pear.common.spring.security;

/**
 * @author Chris Chan
 * Create On 2025/8/6 下午7:43
 * Use for: 安全白名单
 * Explain:
 */
public interface SecurityWhiteList {

    // 静态资源白名单
    String[] WEB_WHITELIST = {
            "/", "/css/**", "/js/**", "/img/**", "/lib/**", "/favicon.ico",
            "/sign",
            "/index.html",
            "/sign.html",
            // -- Swagger UI v3 (OpenAPI)
            "/v3/api-docs/**",
            "/v3/api-docs/**",
            "/swagger-ui/**",
            "/swagger-ui.html",
            // -- SpringDoc OpenAPI UI
            "/api-docs/**",
            "/swagger-ui.html",
            "/swagger-ui/**",
            "/webjars/swagger-ui/**",
            "/swagger-resources/**",
            "/swagger-resources",
            // knife4j
            "/doc.html",
            "/webjars/**",
            // -- Actuator
            "/actuator/health",
            "/actuator/info",
            // 文件资源
            "/upload/file/**"
    };

    // 接口认证白名单
    String[] AUTH_WHITELIST = {
            "/api/auth/**"
    };
}
